package views
{
	import inerface.ITraffic;
	
	import main.ViewSubBase;
	
	import panel.help.TrafficPanel;
	
	public class TrafficView extends ViewSubBase
	{
		private var _panel:ITraffic;
		public function TrafficView()
		{
			super();
		}
		
		public override function show():void
		{
			this.data.xmlLoaderManager.trafficXml.init(render);
		}
		
		protected override function render():void
		{
		   if(_panel == null)
		   {
			   _panel = new TrafficPanel();
			   _panel.init(this.layout.stage,this.resourceLoader,this.lang,this.data.uri);
		   }
		   _panel.show(this.data.xmlLoaderManager.trafficXml.dataList);
		   this.addView(_panel);
		}
		
	}
}